
package com.excesys.exsecs.energy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.excesys.exsecs.energy.entity.PowerDayFlow;
import com.excesys.exsecs.energy.mapper.PowerDayFlowMapper;
import com.excesys.exsecs.energy.service.PowerDayFlowService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 能耗表(小时) 从总表定时取数据 存入
 *
 * @author zhangtailong
 * @date 2023-12-26 11:01:59
 */
@Service
public class PowerDayFlowServiceImpl extends ServiceImpl<PowerDayFlowMapper, PowerDayFlow> implements PowerDayFlowService {

	@Override
	public Float sumPowerList(String timeValue) {
		return this.baseMapper.sumPowerList(timeValue);
	}

	@Override
	public List<Map<String, Object>> powerAnalyse(String timeValue) {
		return this.baseMapper.powerAnalyse(timeValue,"1");
	}

	@Override
	public List<Map<String, Object>> powerGroupBranchingByDate(String timeValue, String branchName) {
		return this.baseMapper.powerGroupBranchingByDate(timeValue,branchName);
	}

	@Override
	public Float powerSumByWhere(String timeValue) {
		return this.baseMapper.powerSumByWhere(timeValue);
	}

	@Override
	public List<Map<String, Object>> powerGroupAreaByDate(String timeValue, String areaName, String order) {
		return this.baseMapper.powerGroupAreaByDate(timeValue,areaName,order);
	}
}
